import { defineStore } from "pinia"
import {ref} from "vue"
import type{
    AccountInformationItem,
    AssetItem,
    FunctionEntranceItem,
    PromotionAcitivityItem,
    NavigationBarItem,
    RecommenddationItem
} from "../types/mine"
export const useMineStore = defineStore('mine',()=>{
    const AccountInformationItemStore = ref<AccountInformationItem[]>([
       {
        title:"账号信息",
        icon:"account",
       } 
    ])
    const AssetItemStore = ref<AssetItem[]>([
        {
            title:"资产",
            icon:"asset",
        }
    ])
    const FunctionEntranceItemStore = ref<FunctionEntranceItem[]>([
        {
            title:"功能入口",
            icon:"function",
        }
    ])
    const PromotionAcitivityItemStore = ref<PromotionAcitivityItem[]>([
        {
            title:"促销活动",
            icon:"promotion",
        }
    ])
    const NavigationBarItemStore = ref<NavigationBarItem[]>([
        {
            title:"导航栏",
            icon:"navigation",
        }
    ])
    const RecommenddationItemStore = ref<RecommenddationItem[]>([
        {
            title:"推荐",
            icon:"recommend",
        } 
    ])
    return{
        AccountInformationItemStore,
        AssetItemStore,
        FunctionEntranceItemStore,
        PromotionAcitivityItemStore,
        NavigationBarItemStore,
        RecommenddationItemStore
    }
})